color-editor: mark the GtkColorSwatch as not selectable
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 17 Feb 2012 16:02:43 +0000 (17:02 +0100)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 17 Feb 2012 16:03:15 +0000 (17:03 +0100)
gtk/gtkcoloreditor.c

index 5bab7ae977fa13127b2cced0b08c1f4f7e46adb1..ae151fe720557a482dfd36f8745a5abfeb2dde61 100644 (file)
@@ -399,6 +399,7 @@ gtk_color_editor_init (GtkColorEditor *editor)
 
   /* Construct the main UI */
   editor->priv->swatch = swatch = gtk_color_swatch_new ();
+  gtk_color_swatch_set_selectable (GTK_COLOR_SWATCH (editor->priv->swatch), FALSE);
   gtk_widget_set_events (swatch, gtk_widget_get_events (swatch)
                                  & ~(GDK_BUTTON_PRESS_MASK
                                      | GDK_BUTTON_RELEASE_MASK